\chapter{otl2latex as a chapter}\label{c:Chapter}



\section{Introduction}

 This is an introductory paragraph block. In LaTeX we know that paragraphs
 are defined by blocks of text separated by one more more blank lines. So
 lets follow this to see if it works here.
  
 This is the second paragraph in this introductory section. Is it working ok?
 

\subsection{What is otl2latex?} \label{s:whatisit}
 

\subsubsection{Translator}

 otl2latex allows you to
 * prepare your document in a powerful outliner
 * generate \LaTeX\ markup of your content
 

\subsection{Requirements}

 

\subsubsection{Operating Systems}

 otl2latex has been used successfully on
 * Linux
 * Mac OS X
 * Windows
 

\subsubsection{Software Required}

 * Python http://www.python.org
 * \LaTeX
 * Beamer http://latex-beamer.sourceforge.net/
 * The Vim Outliner http://bike-nomad.com/vim/vimoutliner.html
 

\section{Usage}

 

\subsection{Basics}

 

\subsubsection{Usage}

 \texttt{python otl2latex.py -p filename.otl filename.tex}
 * \texttt{filename.tex} will be generated, you don't edit that one.
 * You can run all this from withing Vim (see Vim Mappings below).
 

\subsubsection{Basics}

 * Level 1 in the outline become sections
 * Level 2 in the outline become subsections
 * Level 3 in the outline become frame titles
 * Level 4 in the outline become block titles
 * Text in the outline is treated as \LaTeX\ markup
 Placing a '*' at the begining of a line will tell otl2latex to begin an itemize list. otl2latex currently supports 3 levels of Itemization.
 * First Level
 ** Second Level
 *** Third Level
 ** Second Level
 

\subsubsection{Advanced}

 * Level 4 can be omitted
 * You will have no blocks on that frame
 

\subsection{Vim mappings}

 

\subsubsection{Vim Mappings: .vimrc}

 * ,b will generate a pdf file from your outline
 * ,nb will remove all empty lines in your otl file
 * ,p will run the current vim buffer through pdflatex
 

\subsubsection{Vim Mappings: .vimrc}

 * ,i on the first line will create an itemized list of a block of lines
 * ,t will mark a block as otl text
 * ,I itemize and mark block as otl text
 You need to have a blank line at the end of the block to apply these.
 

\subsubsection{Vim Mappings: .vimrc}

 \begin{itemize}
 \item ,f (insert mode) will generate stub for figures
 \end{itemize}
 

\subsubsection{A figure}

 \begin{center}
 \includegraphics[width=.8\linewidth]{otl2latex.png}
 \end{center}
 

\subsubsection{A figure}

 \begin{center}
 \includegraphics[width=.8\linewidth]{otl2latex.png}
 \end{center}
 

\section{Future Extensions}

 

\subsection{Move to vim script}

 \begin{itemize}
 \item Currently we are just embedding mappings in .vimrc
 \item Ok for testing, not very polished for end user
 \end{itemize}
 

\subsection{Reverse Engineering}

 \begin{itemize}
 \item take a tex file
 \item generate the otl file
 \end{itemize}
